package com.itheima.common.exception;

import lombok.Data;

/**
 * @author zhengbinghua
 * @since 2022/10/13 19:27
 */
@Data
public class MyException extends RuntimeException{

    private Integer code;

    public MyException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public MyException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

}
